Update index.html as per HW6 part 1 to fix bugs