move app.js to coffee