Update ajax request check to use wantsJson vs isXmlHttpRequest