created a text field with an autosave after 5 seconds using clearTimeout and setTimeout