updated web.js
fixed issue in web.js
made fix for extra arg to fs.readFileSync
added buffer->string conversion