Updated web.js to use Buf.toString