code: function maybeWrapInJquery(val) {
          var transformedVal = val;
  
          // If the command is returning an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object
          /*jshint -W116*/
          if (val != null && typeof val === "object" &&
             (val.nodeType === 1 || val.nodeType === 9) && val.cloneNode) {
  
              transformedVal = $(val);
          }
  
          return transformedVal;
      }
docs: If the value is an `HTMLElement` or `HTMLDocument`, wrap it in a `jQuery` object