Updated main.coffee file