Make your life easier:
1. Split web code in the specific files (tabs in Code Playground): HTML, CSS and JS. Mixing them all always gets quite messy and hard to debug.
2. Use proper indentation. It's meant exactly to make code more readable (and work, in Python).
Patrick agbenyo paul Yes. It's supposed to be an answer, and also to keep your soul healthier. Trust that: easier to read is easier to debug and fix.
That said, what makes you think setInterval can't take your function? I ran it without issues.
But it always draws the same thing in the same place. If you expect the circle to move, you have to erase the previous one and redraw somewhere else.