Updated web.js as instructed, not tested.
Added missing modules
Bug with buffer.write
read from index.html working