Updated web.js using buffer