detection of requirejs

If requirejs is detected, it will mock the define method for the time
underscore and jquery is registered.
Additional to that, the whole file now lives in it's own scope to
prevent accidental pollution of the global namespace.

Issue reference: https://github.com/MiniProfiler/ui/issues/11