Updated web.js
reading from index.html
fixing fs require