Save unsaved edits to window.localStorage every 5 seconds (restored on page load)