prependTo(element, container) {
    if (container) {
      if (container.firstChild) {
        try {
          container.insertBefore(element, container.firstChild);
        }
        catch (err) {
          console.warn(err);
          container.appendChild(element);
        }
      }
      else {
        container.appendChild(element);
      }
    }

    return this;
  }
Prepend an HTML DOM element to a container.
@param {HTMLElement} element - The DOM element to prepend.
@param {HTMLElement} container - The DOM element that is the container of the element getting prepended.
@returns {this} - The instance of the element.