getting rid of localStorage.length for IE