Update and rename index.coffee to index.js

Convert javascript