Neither of your
clearInterval
calls will work - the variable you're passing as the parameter is defined in a different function.
Other than that, your code works as expected:
Demo[
^]
If you still can't get it working, you'll need to explain what the problem is.