Changes to index.js