diff --git a/layouts/partials/js.html b/layouts/partials/js.html
index 12146d1..ef265e8 100644
--- a/layouts/partials/js.html
+++ b/layouts/partials/js.html
@@ -1,5 +1,5 @@
-{{ $main := resources.Get "js/main.js" }}
-{{ with $main }}
-{{ $js := . | resources.Minify | fingerprint }}
-
+{{ $js := resources.Get "js/main.js" }}
+{{ with $js }}
+{{ $secureJS := . | resources.Minify | resources.Fingerprint }}
+
{{ end }}