edited $.each()