(function(){
  document.addEventListener('click', function(e){
    var btn = e.target.closest('[data-mj-confirm]');
    if(btn && !confirm(btn.getAttribute('data-mj-confirm') || 'Are you sure?')){ e.preventDefault(); }
  });
})();
