HW6, part 1, fixed bugs in index.html