convert index.js to coffee

this has been bugging me