Removed unnecessary code in main.js and bonus.js