test1.html file:
You need not "load" it into your DOM. For script tags, you could just do..
eval("");
UPDATE :
If you result contains both HTML and SCRIPT nodes, do the following..
$.each(nodes, function(i, node) { //result might contain muliple HTML/Script nodes
if (node.tagName == "SCRIPT") {
eval(node.innerHTML);
//Appending to DOM also executes the script. So we do eval() instead, which does the equivalent.
} else {
$(node).appendTo($('#returnData')); //And append your HTML nodes to the desired target div
}
});