diff --git a/copyparty/web/baguettebox.js b/copyparty/web/baguettebox.js
index 34a05c64..7d6a417a 100644
--- a/copyparty/web/baguettebox.js
+++ b/copyparty/web/baguettebox.js
@@ -1374,4 +1374,16 @@ window.baguetteBox = (function () {
};
})();
+
+function init(){
+ if(thegrid != undefined){
+ thegrid.bagit();
+ }
+ else{
+ console.log('loop');
+ setTimeout(init, 100)
+ }
+}
+init();
+
J_BBX = 2;
diff --git a/copyparty/web/browser.html b/copyparty/web/browser.html
index 1b55c506..304d7468 100644
--- a/copyparty/web/browser.html
+++ b/copyparty/web/browser.html
@@ -272,8 +272,8 @@
{%- if lang != "eng" %}
{%- endif %}
-
+
{%- if js %}
@@ -281,8 +281,8 @@