ByteStream I/O for JavaScript