javascript aggregation is togglable