Added code so you can use  require() 

code to export DataStream for node js require