appendTo(element, container) {
    container?.appendChild(element);
    return this;
  }
Append an HTML DOM element to a container.
@param {HTMLElement} element - The DOM element to append.
@param {HTMLElement} container - The DOM element that is the container of the element getting appended.
@returns {this} - The instance of the element.