Translate JavaScript to CoffeeScript