diff --git a/lib/exe/js.php b/lib/exe/js.php
index 3f9781e3493ba0830cbb3523518ded3de1847728..06d0dda557d1c0208bffddd6f2a3f66337319000 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -14,7 +14,7 @@ require_once(DOKU_INC.'inc/init.php');
 
 // Main (don't run when UNIT test)
 if(!defined('SIMPLE_TEST')){
-    header('Content-Type: text/javascript; charset=utf-8');
+    header('Content-Type: application/javascript; charset=utf-8');
     js_out();
 }