Nasdaq ends higher on tech strength, Dow drops