please put this object into a new file, apps/user_ldap/js/ldapFilter.js. You will need to register it in apps/user_ldap/settings.php for inclusion