An unexpectedly strong report on payrolls helped stocks bounce back on Friday from four days of losses, tempering worries that stocks could follow the sharp declines seen this week in commodities.

Based on the latest available data, the Dow Jones industrial average <.DJI> was up 54.64 points, or 0.43 percent, at 12,638.81. The Standard & Poor's 500 Index <.SPX> was up 5.09 points, or 0.38 percent, at 1,340.19. The Nasdaq Composite Index <.IXIC> was up 12.84 points, or 0.46 percent, at 2,827.56.

For the week, the Dow was down 1.3 percent, the S&P 500 was down 1.7 percent and the Nasdaq was down 1.6 percent.

(Reporting by Caroline Valetkevitch; Editing by Kenneth Barry)