convert index.js to index.coffee