automatically detect whether the 'cors' option is needed on Ajax.load and Ajax.ping