Storage used localStorage correctly

Fix typo which meant localStorage would never be used.