Rewrite stream.js on oberon.