private string JSSerialize(string[] args) { if (args.Length != 1) throw new InvalidJSArgumentException ("Serialize", -1); return host.RootDocument.Serialize (args [0]); }