test1.html file:
you need to do something like this so that it loads script element , so my advise is when you get response replace script string with scri" + "pt
script
scri" + "pt
var code = "