fix session storage script & add support for iOS browser (see comment in code)