changes to index.js