 +  this.radiogroup.appendChild(this.jsRadio);
 +
 +  let commandName = stringBundle.GetStringFromName("termTypeCommand");
-+  this.gcliRadio = this.doc.createElement("radio");
++  this.gcliRadio = this.document.createElement("radio");
 +  this.gcliRadio.setAttribute("label", commandName);
 +  this.gcliRadio.setAttribute("value", "gcli");
 +  this.gcliRadio.addEventListener("command", this.onChange);

+ *        Usually a weak reference to an nsIDOMWindow, however this code
+ *        follows the convention of JSTerm where the context does not have to
+ *        be to a window.
+ * @param {nsIDOMNode} aParentNode
+ *        The node to which to attach the GcliTerm
+ * @param {object} aConsole
+ *        Console object to use within the GcliTerm
+ */
+function GcliTerm(aContext, aParentNode, aConsole)
+{
+  this.context = aContext;
+  this.parentNode = aParentNode;
+  this.console = aConsole;
+
+  this.createUI();

+///////////////////////////////////////////////////////////////////////////
+
+Cu.import("resource:///modules/gcli.jsm");
+let console = gcli._internal.console;
+
+/**
+ * GcliTerm
