Fixed sessionStorage issues with IE 7-9