//data stores the ajax response
var matches = data.match(/<title>(.*?)<\/title>/);
var pageTitle = matches[1];
document.title = pageTitle;
//data stores the ajax response
var matches = data.match(/<title>(.*?)<\/title>/);
var pageTitle = matches[1];
document.title = pageTitle;