revert unnecessary changes in main.js