Toggling `data-flagged` state on DOM elements