modified web.js to incorporate local directory, changes index.html to be consistent