revert main.js