Oh, so it's not necessary to detach or use an IIFE? It's much easier to read this way.

I thought that if the load event was ever fired again by some other script it could cause the thing to re-initialize, probably drawing a new ball in the process.