Auto-store state of input elements in localStorage (jQuery)