code: function (jsonConfig, treeId ) {
  
          /**
           * @param {object} jsonConfig
           * @param {number} treeId
           * @returns {Tree}
           */
          this.reset = function( jsonConfig, treeId ) {
              this.initJsonConfig = jsonConfig;
              this.initTreeId = treeId;
  
              this.id = treeId;
  
              this.CONFIG = UTIL.extend( Tree.CONFIG, jsonConfig.chart );
              this.drawArea = UTIL.findEl( this.CONFIG.container, true );
              if ( !this.drawArea ) {
                  throw new Error( 'Failed to find element by selector "'+this.CONFIG.container+'"' );
              }
  
              UTIL.addClass( this.drawArea, 'Treant' );
  
              // kill of any child elements that may be there
              this.drawArea.innerHTML = '';
  
              this.imageLoader = new ImageLoader();
  
              this.nodeDB = new NodeDB( jsonConfig.nodeStructure, this );
  
              // key store for storing reference to node connectors,
              // key = nodeId where the connector ends
              this.connectionStore = {};
  
              this.loaded = false;
  
              this._R = new Raphael( this.drawArea, 100, 100 );
  
              return this;
          };
  
          /**
           * @returns {Tree}
           */
          this.reload = function() {
              this.reset( this.initJsonConfig, this.initTreeId ).redraw();
              return this;
          };
  
          this.reset( jsonConfig, treeId );
      }
docs: Tree constructor.
  @param {object} jsonConfig
  @param {number} treeId
  @constructor