ajax for stream