jQuery Alert for window on before-unload if unsaved changes

Here's the feature that checks for changes in inputs/textareas on page and shows an alert on beforeunload if there are unsaved changes

@jinpa this is the branch to check!