modify jquery.each