When the purged tab was canceled, extract the process to restore scroll position to function.
When the interval process was initialized, should set the interval time at the arguments.
Clean the code.