From http://stackoverflow.com/questions/2828186/jquery-is-only-returning-first-item