Finally got localStorage to do what I want.