diff --git a/head.sub.php b/head.sub.php
index e33ea5aae..3b19fd6a3 100644
--- a/head.sub.php
+++ b/head.sub.php
@@ -73,6 +73,17 @@ var g4_is_ie = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
+
+if (isset($editor->js)) {
+ $g4['js_file'][] = $editor->js;
+ if (isset($editor->config_js)) {
+ $g4['js_file'][] = $editor->config_js;
+ }
+}
+if (isset($captcha->js)) {
+ $g4['js_file'][] = $captcha->js;
+}
+?>