Use strict, Luke.
Fixed variable name. Strict mode did not help because there's an onload global.
Wait for all assets to load.