Small Javascript module for automatically checking if any page input or textarea values have been changed and alert users before they navigate away with unsaved changes