So, there are two options: simplify this in terms of document.write inception, this is stupidly complicated just to work around async stuff in require... by blowing away the document again.

We could replace this with almond to give us working define/require without require.js actually doing async dynamic file loading.