is it possible to make ternary syntax of xmlhttprequest ? 

something like

//ajax constructor
var AJAX = (new XMLHttpRequest()) || (new ActiveXObject("Microsoft.XMLHTTP")) || (new ActiveXObject("Msxml2.XMLHTTP"));
AJAX.load = function (filename,call_function,async,method,string_toSend) {
//making default value for ajax.load method
method = typeof method !== 'undefined' ? method : 'GET';
async = typeof async !== 'undefined' ? async : true;
string_toSend = typeof string_toSend !== 'undefined' ? string_toSend : null;
if (AJAX.readyState == 4 && AJAX.status == 200) {
       call_function;
    } else {
setTimeout('AJAX.load('+filename+','+call_function+')',1000);
}
AJAX.open(method,filename,async);
AJAX.send(string_toSend);
}