Switch to setTimeout instead of setInterval

waits until http request completes before setting next timer