jquery to javascript - $.ajaxSetup()
<p>Since I am using ExtJs framework in my project I can't use jquery in my project. now I've a piece of code in jquery (given below), can someone help me to convert jquery into javascript? thanks</p>

<pre><code>setup: function (networkErrorCallback) {
        this._networkErrorCallback = networkErrorCallback;

        var self = this;
        //$.support.cors = true;
        $.ajaxSetup({
            type: "GET",
            contentType: "application/json; charset=utf-8",
            dataType: "jsonp",
            jsonp: "method",
            timeout: 30000,
            error: function (XMLHttpRequest, textStatus, errorThrown) { self._networkErrorCallback(); },
            cache: false
        });
    }
</code></pre>
