js stream aggregates