Storing profile in localStorage, publish html restruktured