Streams and potentially other lazy data structures in javascript