Convert JS to CoffeeScript