Updated web.js
Reading from file.
Fixing require.
Fixing buffer.