Fixing index.js issue