Removes some unnecessary code from main.js.