A reliable read/write stream class for node.js and browsers