fix autosave in redactor.js