Replaced underscore calls with coffeescript equivalents