Creating JavaScript File for Stream