Persist HTML and JS in localStorage