For support of local and session storage on older browsers