fixed js initialization (top hud display occasionally didn't show)