Change JS to CoffeeScript