I know this question has been asked multiple times (yes, I did some research) but I can\'t see to find a solution that fits my needs.
What I have done so far:
why don't you use the setInterval function, it will do exactly what you want.
Example:
setInterval(function() { // logic to be implemented }, delayInMilliseconds)