change global assignment technique

prevents javascript minifiers from messing up onDomReady's rightful global