Converted JavaScript to CoffeeScript.