edited index.js