Switch to using HTML5 local storage when available.