Create eventstream.js