Change localStorage getter format

This should hopefully solve null issue. Dot notation returns "undefined", but getItem returns the expected "null".