US stocks end week lower as market eyes earning