diff --git a/deluge/ui/web/index.html b/deluge/ui/web/index.html
index ab69e998c..96748f1ec 100644
--- a/deluge/ui/web/index.html
+++ b/deluge/ui/web/index.html
@@ -7,37 +7,14 @@
-
-
-
-
-
+ %for stylesheet in stylesheets:
+
+ %endfor
-
-
- %if debug:
-
- %else:
-
- %endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ %for script in scripts:
+
+ %endfor