working  web.js file to display content of index.html