fixing index.js