title: Cancel all Javascript's setTimeouts and setIntervals
body: <p>What's the proper way to cancel all JS setTimeout , setInterval and requestAnimationFrame after a given amount of seconds ?</p>
  
  <p>Edit: Sorry, I should have explained more! The code comes from either Database or some API, so I cannot keep track of the timeout,raf or interval IDs. So I don't have the IDs of the timers that I can easily you to clearInterval or clearTimeout or cancelAnimationFrame. I know I have to use them, but I don't know how to get all the animation IDs (if there are any).</p>