Better check for commonJS, otherwise it also takes the QUnit module methode, which causes a crash