Cache current client document state in localstorage for access after closing and reopening the browser