cleaning up code for index.html