modified app.coffee