I made it much cleaner and fixed the index.html bug!