Port app.js to CoffeeScript