Update web.js
Update web.js
defined buf variable