Local Storage changed to new scheme.

Fixed JSON Parsing bug. Local storage still seems to behave erratically.
Identifies the keys sometimes, the prompt still gets called twice