Refactor main.js.dist and index.html to remove unused stuff.