Change nodeType to nodeName checks, and avoid script/style nodes
Fix node names being upper-case in HTML
Only do replacements once filters are loaded, doy