Update index.js

comments updated