HW4 for index.html debug2