modified the web.js to use index.html file