localstorage and globalstorage check were failing on IE.