Converted code to CoffeeScript.
Removed old JS.