add some code to index.coffee