do saves on periodic intervals

In case unload doesn’t work in some browsers.