diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
index f973d063ed..0d55337703 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/cleanborrowers.tt
@@ -1,49 +1,12 @@
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Tools › Batch patron deletion/anonymization [% IF step == 2 %]› Confirm[% END %][% IF step == 3 %]› Finished[% END %]
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.inc' %]
-
-
+
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
@@ -240,4 +203,45 @@
[% INCLUDE 'tools-menu.inc' %]
+
+[% MACRO jsinclude BLOCK %]
+
+ [% INCLUDE 'calendar.inc' %]
+
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
index 74705639a5..53b5c0d05e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt
@@ -1,134 +1,13 @@
[% USE Koha %]
[% USE KohaDates %]
[% USE Branches %]
-[% INCLUDE 'doc-head-open.inc'%]
+[% SET footerjs = 1 %]
+[% INCLUDE 'doc-head-open.inc' %]
Koha › Tools › Batch patron modification
[% INCLUDE 'doc-head-close.inc' %]
-[% INCLUDE 'calendar.inc' %]
-[% INCLUDE 'datatables.inc' %]
-
+
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
@@ -412,4 +291,129 @@
[% INCLUDE 'tools-menu.inc' %]
+
+[% MACRO jsinclude BLOCK %]
+ [% INCLUDE 'calendar.inc' %]
+ [% INCLUDE 'datatables.inc' %]
+
+
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
index bb6e82412e..f27a8c2e1c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/overduerules.tt
@@ -1,27 +1,11 @@
[% USE Koha %]
[% USE Branches %]
+[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Tools › Overdue notice/status triggers
[% INCLUDE 'doc-head-close.inc' %]
-
-
-
+
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
@@ -170,4 +154,23 @@ $(document).ready(function() {
[% INCLUDE 'tools-menu.inc' %]
+
+[% MACRO jsinclude BLOCK %]
+
+
+[% END %]
+
[% INCLUDE 'intranet-bottom.inc' %]