diff --git a/plinth/modules/diagnostics/templates/diagnostics.html b/plinth/modules/diagnostics/templates/diagnostics.html
index 08d0fcd77..797d1356f 100644
--- a/plinth/modules/diagnostics/templates/diagnostics.html
+++ b/plinth/modules/diagnostics/templates/diagnostics.html
@@ -19,11 +19,14 @@
{% endcomment %}
{% load i18n %}
+{% load static %}
{% block page_head %}
{% if is_running %}
-
+
{% endif %}
{% endblock %}
@@ -73,3 +76,11 @@
{% endif %}
{% endblock %}
+
+
+{% block page_js %}
+ {% if is_running %}
+
+ {% endif %}
+{% endblock %}
+
diff --git a/plinth/modules/monkeysphere/templates/monkeysphere.html b/plinth/modules/monkeysphere/templates/monkeysphere.html
index ebac142df..b230d53e8 100644
--- a/plinth/modules/monkeysphere/templates/monkeysphere.html
+++ b/plinth/modules/monkeysphere/templates/monkeysphere.html
@@ -20,11 +20,14 @@
{% load bootstrap %}
{% load i18n %}
+{% load static %}
{% block page_head %}
{% if running %}
-
+
{% endif %}