updated the index.js file