Fix bugs in index.html for hw6 pt1