Added HTML5 localStorage support.