You know it, you love it! Add the command handler to allow for easily extending it in the future. JavaScript can even take functions as parameters, so you can easily call different commands for the brushes, bucket, and eraser!
Note: Look into #8 to possibly create an even cleaner / more performant approach.