Fixing index.js