JavaScript Throbber with the canvas element