Converted app.js to coffeescript