replaced _.each with coffeescript for each loops