Updated version of web.js. It is now reading from Index.html