code: function(path) {
  
        var x, wrapper;
  
        // fetch the config
        fetch(path + 'html/modals.html')
          .then(function(response) {
            return response.text();
          }).then(function(text) {
  
            wrapper = document.createElement('div');
            wrapper.innerHTML = text;
  
            for (x = 0; x < wrapper.childNodes.length; x += 1) {
              hashedit.current.container.appendChild(wrapper.childNodes[x]);
            }
  
            // init menu
            for (x = 0; x < hashedit.menu.length; x += 1) {
  
              // initialize
              if (hashedit.menu[x].init) {
                hashedit.menu[x].init();
              }
  
            }
  
            // setup events
            hashedit.setupConfigEvents();
            hashedit.setupTextEvents();
            hashedit.setupModalEvents();
  
          });
  
      }
docs: Load html