modified index.html and web.js for HW4