fix LocalStorage is not defined
Merge pull request #3 from hejiann/master

fix issue #2 ReferenceError: LocalStorage is not defined