Added docs to streams.md; Modernized streams.js module