refactored to use jQuery to autosave 5 seconds after key up