Utilities for real-time JS