revert index.js maybe it'll fix the error