Fix escaping in externalized inline js; fix style attribute replacements not being !important.