Changed index.js to coffeescript