use node buffers in the browser

Fixes https://github.com/dominictarr/JSONStream/issues/31