Figured it out:
/**
* Evaluate scripts in an HTML document. Will eval both <script
src=""></script>
* and <script>javascript here</scripts>.
*
* @param element a new HTML(text).getElement()
*/
public static native void evalScripts(Element element) /*-{
var scripts = element.getElementsByTagName("script");
for (i=0; i < scripts.length; i++) {
// if src, eval it, otherwise eval the body
if (scripts[i].hasAttribute("src")) {
var src = scripts[i].getAttribute("src");
var script = $doc.createElement('script');
script.setAttribute("src", src);
$doc.getElementsByTagName('body')[0].appendChild
(script);
} else {
eval(scripts[i].innerHTML);
}
}
}-*/;