Moved javascript to CoffeeScript and out of application.js