convert index.js to coffee
Merge pull request #383 from slang800/index.coffee-patch

convert index.js to coffee