fixed up application.coffee, main.js and chaplin