The most important part of this is the content-type header.
Setting this correctly causes the browser to use its XML parser,
which then feeds decoded text to the JavaScript parser.
Normally we'd send text/html, which would not expect encoded JavaScript.

Every page still throws a JavaScript error for the Sunlight.highlightAll call,
but that's broken JavaScript code and nothing to do with MarkLogic.