if (!Element.prototype.remove) {
    Element.prototype.remove = function () {
      this.parentNode.removeChild(this);
    };
  }