diff --git a/themes/openpowerfoundation/layouts/partials/footer.html b/themes/openpowerfoundation/layouts/partials/footer.html
index 71e5dd5..ab9186e 100644
--- a/themes/openpowerfoundation/layouts/partials/footer.html
+++ b/themes/openpowerfoundation/layouts/partials/footer.html
@@ -50,20 +50,13 @@
{{ $mainjavascript := resources.Get "js/main.js" }}
-{{ $mainjs := $mainjavascript | resources.Minify }}
-
{{ $jqueryformjavascript := resources.Get "js/jquery.form.js" }}
-{{ $jqueryformjs := $jqueryformjavascript | resources.Minify }}
-
{{ $formjavascript := resources.Get "js/form.js" }}
-{{ $formjs := $formjavascript | resources.Minify }}
-
{{ $changelogjavascript := resources.Get "js/changelog.js" }}
-{{ $changelogjs := $changelogjavascript | resources.Minify }}
-
{{ $selectjavascript := resources.Get "js/select.js" }}
-{{ $selectjs := $selectjavascript | resources.Minify }}
-
+{{ $javascripts := slice $mainjavascript $jqueryformjavascript $formjavascript $changelogjavascript $selectjavascript | resources.Concat "js/scripts.js" }}
+{{ $javascript := $javascripts | resources.Minify }}
+
{{ if .Site.Params.analytics.piwik }}
{{ partial "_analytics/piwik.html" . }}
{{ end }}