Variable naming and animation code cleanup

Added a `1` to first treat canvas id and variable names. Refactored code
that sets canvas width and height. Refactored bubble animation drawing
code to use variables and less code in one loop again.