Migrate to coffeescript