getHeader (text, pathDepth) {
    const el = document.createElement('h5')

    if (typeof text === 'string') {
      el.textContent = text
    } else {
      el.appendChild(text)
    }

    return el
  }
Gets a header element.

@param {string|HTMLElement} text The header text or element.
@returns {HTMLElement} The header element.