Modifying index.js