remove notebook.dirty = false line in favor of
overwritting onbeforeunload.