Add AJAX function to verify and disable the link in doc-switcher.