add localStorage for iphone demo