throws ParseException {
if (n.getNodeType() == 1
&& Strings.eqIgnoreCase("script", n.getNodeName())) {
String id = "$" + extractedScripts.size();
Element placeholder = Placeholder.make(n, id);
extractedScripts.add(new ScriptPlaceholder(
new JobEnvelope(id, JobCache.none(), ContentType.JS, false, null),
js(fromString(n.getFirstChild().getNodeValue()))));
n.getParentNode().replaceChild(placeholder, n);
n = placeholder;
}