Autosave form and editor content through ajax