Clayton Kershaw allowed five runs - four earned - in six innings, but the Dodgers rallied to win 7-6 as James Loney scored on a wild pitch in the eighth inning.