MiniProfiler doesn't modify the global namespace unless it has to (the MiniProfiler variable and the prettify plugins are the only current exceptions). This needs to be refactored to be inside the MiniProfiler block.