Migrate from JS to Coffee Script