better IE 10 fix that doesnt break localStorage on other browsers