diff --git a/pages/_layouts/base.html b/pages/_layouts/base.html
index 3db438041..8195e7fc5 100644
--- a/pages/_layouts/base.html
+++ b/pages/_layouts/base.html
@@ -29,7 +29,6 @@
{% include layout/og.html %}
{% include layout/css.html %}
- {% include layout/js.html %}
@@ -44,6 +43,8 @@
{% endif %}
{% endif %}
+{% include layout/js.html %}
+
{{ site.capture_global.scripts }}