make MIDI, XMLHttpRequest and other cross-referenced objects global.