Migrating to coffeescript