const deselect_all = function () {
  var scope = this.dataset.scope || "body";
  // find all the enabled, checked checkboxes and deselect them
  // fire the change event on them, to allow other js code to pick up that they have changed
  $(scope).find('input[type="checkbox"]:enabled:checked').prop("checked", false).trigger("change");