Nasdaq closes higher, Dow, S&P 500 end in negative territory