copied app.coffee file from the tutuorial to debug