var user = "";
$.ajax({
url: Url,
type:"GET",
success:function(data) {
user = data.user;
},
error:function (xhr, ajaxOptions, thrownError){
console.log(xhr.responseText);
}
});
console.log (user);