adjusting index.js