The broadcast channel API does exactly what crosstab does, but better: https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API