Updated web.js
Read from file
Add fs
Added buffer