switch _.each calls to coffeescript for loops