Update index.js

added the proper comments