If you think this is the only way then you could try this dirty hack

 

var status = false;

 

//GlideAjaxCallHere

//CallBackFunction

function callBack(res){

//processResponse

status = true;

}

while(!status){}

 

//rest of the code here