US stocks end on positive note