code: function(json) {
      
          /*
           * Property: _list
           *   List of selected values.
           *
           * Property: _index
           *   Index of currently selected value.
           *
           * Property: json
           *   Current value to operate on
           */
          // check if simple or compound constructor was passed in
          if (arguments.length === 2) {
              if (!(this instanceof jDoc)) {
                  return new jDoc(arguments[0], arguments[1]);
              }
              var list = arguments[0];
              var index = arguments[1];
              this._list = list;
              this._index = index;
          } else {
              if (!(this instanceof jDoc)) {
                  return new jDoc(json);
              }
              
              // simple assignment
              this._list = (json !== null) ? [json] : [];
              this._index = 0;
          }
      }
docs: jDoc definition /*
  Constructor: jDoc
  Wrap a JSON object in a jDoc object.
  Parameters:
  json - object to wrap
  -OR-
  nodes - list of selected nodes
  index - index of selected node
  Returns:
  jDoc - jDoc wrapper