diff --git a/js/tests/index.html b/js/tests/index.html
index b32f0adc22c42a5309f932a48a0d5ad6d38bd21e..05e9009fcb980094bdd60fa3b9a2ecea24e4142f 100644
--- a/js/tests/index.html
+++ b/js/tests/index.html
@@ -43,12 +43,12 @@
 
       QUnit.testStart(function (testDetails) {
         $(window).scrollTop(0)
-        QUnit.log = function (details) {
+        QUnit.log(function (details) {
           if (!details.result) {
             details.name = testDetails.name
             log.push(details)
           }
-        }
+        })
       })
 
       // Cleanup