add comments to index.js