Excellent work @puddlec - loads of people will be very happy with this! There is one small change I'd potentially make;  add in an array of good pages such like; var $good_pages = ['categories.php', 'manufacturers.php']; and then in the function, global $PHP_SELF and check it against the good_pages; if (in_array(basename($PHP_SELF, $this->good_pages)) {   ... } This will then load the scripts only on the pages that need them rather than on all pages. And add textarea[n