using _.each instead of $.each