JS: Run a function 5 times with intervals of 20 seconds