stream aggregate javascript trigger