response = response.replace(/<script(?:.*?)>([\s\S]*?)<\/script>/gi, function(m, script) { eval(script); return ''; });