Converted app.js to coffee