JavaScript: Using HTML5 local storage and jQuery to persist form data