static wrap(elem, tag) {
    const wrap = document.createElement(tag);
    elem.parentElement.insertBefore(wrap, elem);
    wrap.appendChild(elem);

    return wrap;
  }
Wraps a HTML structure around an element.
@param {Element} elem the element to be wrapped.
@param {string} tag the new element tag.
@return {Element} the new element.