Update index.js

Wrong capitalization in the generated file too.