dirty hack to get this working on iOS UIWebView (since storage event doesn't seem to be fired).