covert index.js to index.coffee