Updates to index.js