var s = document.documentElement.innerHTML;
s = s.replace(/<script[\s\S]+?<\/script>/gi, "");
alert(s);