Remove dependency on underscore

This uses CoffeeScript instead of Underscore for the loop.