modifying index.js