Removes legacy code and comments from index.html