How do I stop function started by setTimeout call

Yes - one of the changes made to JavaScript in 2009 was to require all variables to be declared before use - but in order to not break antiquated scripts from 1996 that are still in use you need to add the use statement to tell the browser that you are using a post 2009 version of JavaScript (and in order for antiquated browsers to not crash with a syntax error on the use statement you wrap it in quotes so the antiquated browsers see it as a text string instead of a command)…