diff --git a/index.html b/index.html
index af815e3..56705a2 100644
--- a/index.html
+++ b/index.html
@@ -13154,15 +13154,6 @@ ninja.wallets.donate = {
})(ninja);
diff --git a/src/ninja.onload.js b/src/ninja.onload.js
index dd9ca9c..930831f 100644
--- a/src/ninja.onload.js
+++ b/src/ninja.onload.js
@@ -1,12 +1,3 @@
-// run unit tests
-if (ninja.getQueryString()["unittests"] == "true" || ninja.getQueryString()["unittests"] == "1") {
- ninja.unitTests.runSynchronousTests();
- ninja.translator.showEnglishJson();
-}
-// run async unit tests
-if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()["asyncunittests"] == "1") {
- ninja.unitTests.runAsynchronousTests();
-}
// change language
if (ninja.getQueryString()["culture"] != undefined) {
ninja.translator.translate(ninja.getQueryString()["culture"]);
@@ -57,5 +48,15 @@ for(i = 0; i < janin.currencies.length; i++) {
list += "";
donatelist.innerHTML = list;
+// run unit tests
+if (ninja.getQueryString()["unittests"] == "true" || ninja.getQueryString()["unittests"] == "1") {
+ ninja.unitTests.runSynchronousTests();
+ ninja.translator.showEnglishJson();
+}
+// run async unit tests
+if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()["asyncunittests"] == "1") {
+ ninja.unitTests.runAsynchronousTests();
+}
+
ninja.envSecurityCheck();
ninja.browserSecurityCheck();
\ No newline at end of file