Added checking localStorage support