response = response.replace(/<script(?:.*?)>([\s\S]*?)<\/script>/gi, function(m, code) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.appendChild(document.createTextNode(code));
document.head.appendChild(script);
});
|