save markup in localStorage