For more on Daniel Ives comments: US stocks end higher heading into holiday weekend but down for week