
jQuery.getJSONsync = function(url, data, callback) {
    return jQuery.ajax({
        type: "GET",
        url: url,
        data: data,
        async: false,
        dataType: "json",
        success: callback,
        error:function (xhr, ajaxOptions, thrownError) {
            throw 'Ajax error';
        }
    });
}

