fix bugs in index.html as in HW6