Updated web.js
Reading from index.html
added require(fs)
bug fix for file name
bug fix toString