Rewrote app.js in coffeescript