changed index.js file