wrong parameters for $.each