Convert JavaScript to CoffeeScript