add comments for index.js