fixed index.js file