Add ids for all the buttons in the HTML file.  Do the following in JavaScript. If the Start Animation button is pressed, only the Stop Animation button should be enabled.  Also, invoke clearRect as soon as possible when the callbacks for many of the buttons are pressed.