Followup 100813, use Xml::encodeJsVar and Html::inlineScript