Wrapper for HTML5 localStorage