Fix syntax and localStorage usage
Merge pull request #1 from L8D/patch-1

Fix syntax and localStorage usage