adds javascript for streaming