reverting index.js