Safeguard against whiteline strippers
Inject JS only if sure about this being an HTML doc.