modified web.js and index.html