HW4 for index.html debug1