documented index.js