It appears that Firefox will only run it properly if the page is accessed from a valid URL and not "file://". It ran fine from localhost (IIS) but not when I accessed it locally via file://. I got opposite results with Safari, where it worked via local access but not from IIS/localhost. I don't know why Google implemented LocalStorage without implementing SessionStorage