Check for XHR support.