correct index.js