Modified index.js from stream1 to stream2. This change helps to close #1.