Updated web.js
web.js updated to read from index.html
Fix fs require