S&P, Nasdaq wrap up worst week of 2013