fixing localStorage by checking and using get/setItem
Merge pull request #18 from hasdavidc/fixing-local-storage-in-private-safari

fixing localStorage by checking and using get/setItem