Edited index.html and fixed bugs as per HW6 Part 1