diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 362833d..19428e0 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -63,10 +63,6 @@
{{ end }}
- {{ range .Site.Params.custom_js }}
-
- {{ end }}
-
{{ range .Site.Params.custom_scss }}
{{/* We don't change the targetPath to because it's transparent to users */}}
{{ if $.Site.IsServer }}
@@ -106,6 +102,10 @@
{{ partial "footer.html" . }}
+ {{ range .Site.Params.custom_js }}
+
+ {{ end }}
+
{{ template "_internal/google_analytics.html" . }}
{{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }}