index.js file updated