revert back main.js changes