Add a safety fallback on js load.