switching to index.js including coffeescript pattern