revised buffer dimension to 256 and simplified buf
revised web.js to feed buf.toString into buf2