revert index.js