declare a custom event with 'on' then trigger it with setInterval(). I am not a good code savvy. I think you are better coder than I. So please convert the logic into code. I will work.