Update index.coffee

wrong capitalization
Update index.js

Wrong capitalization in the generated file too.
Merge pull request #4 from greenlion/master

Wrong capitalization for itempile results in failure.