generate HTML from localStorage