main
checkPageDirtyness
function checkPageDirtyness(element) { let callback = () => {} if ($(element).is("form")) { callback = function () {