Modified web.js code ...from index.html