'close';

              button.addEventListener('click', () => {
                dialog.close();
              })

              dialogOverlayNode.appendChild(button);
            }
          });
        });

        closeOnEscape.addEventListener('click', (e) => {
          dialog.open({
            invokerNode: e.target,
            closeOnOutsideClick: false,
            content: (dialogOverlayNode, dialogNode) => {

              dialogOverlayNode.innerHTML = 'only closes on escape';
              const