experimented with setTimeout and clearInterval functions with saving a document