Mimic Scheme Streams in JavaScript