doc streaming

utils.js edits