Bug with locaStorage in Chrome v.24

Fix for bug with localStorage in Chrome v.24
![Chrome-bug](https://f.cloud.github.com/assets/164393/79354/e3e5e8ec-61ac-11e2-93e1-c398c0ae9107.jpg)