So we have to make this a global variable for places where it is used by code not using RequireJS?

I think I'd rather see a single place where these things are added to the window object so we can easily track (and remove) them.