adds local storage script to html