docs: function makeElementFromObj(obj, addClass) {
    let tag = null;
    let cla = [];
    let element = null;
  
    if (typeof addClass !== "undefined") {
      cla = addClass;
    }
  
    if (obj.hasOwnProperty("tag")) {
      tag = obj.tag;
    } else {
      return null;
    }
    if (obj.hasOwnProperty("class")) {
      cla = cla.concat(obj.class);
    }
    element = createElementWithClass(tag, cla);
    if (obj.hasOwnProperty("id")) {
      element.id = obj.id;
    }
    if (obj.hasOwnProperty("textContent")) {
      element.textContent = obj.textContent;
    }
    if (obj.hasOwnProperty("innerHTML")) {
      element.innerHTML = obj.innerHTML;
    }
    if (obj.hasOwnProperty("tabIndex")) {
      element.tabIndex = obj.tabIndex;
    } else {
      element.tabIndex = -1;
    }
    if (obj.hasOwnProperty("children")) {
      for (let ele of obj.children) {
        element.appendChild(ele);
      }
    }
    return element;
  }