add ability to modify  autosave time in a pure js plugin

of course to be refined.