convert app.js to app.coffee