wow, are globals tucked into window.GLOBALS? I thought there would be some sort of inner scope.
I mean if it works, then fine, but it sort of looks fragile.