cleaned up code on index.html