Using _.each instead hand-written for loops