update main.coffee file