HW4 Part 2 for index.html