JS fix to prevent simultaneous broadcasts