index.js doc edits