public void BeforeParsing(XDocument document)
{
var html = document.Root;
var head = html.Element("head");
Check.NotNull(head, "<head> section is missing from document");
m_Script = new XElement("script");
m_Script.SetAttributeValue(XName.Get("type"), "text/javascript");
m_Script.SetValue("");
head.Add(m_Script);
}