moved localStorage stuff to host js file