See https://developer.mozilla.org/en-US/docs/JavaScript/Timers/Daemons