S&P and Nasdaq cut early losses; Dow flirts with positive territory