quick and dirty document save/load from localStorage