updated web.js to read contents from index.html and display it