Rewritten app.js(JavaScript) to app.coffee(CoffeeScript).