Updated web.js
read buffer from file