Modified web.js to display index