Adding docs for index.js