To place this syntax:
modal: true,
into here:
$(document).ready(function () {
$('#wrapper').dialog({
modal: true, //blur, darkened
autoOpen: false,
}
});
will make background darkened/blur. That will also block the content to manipulate with.