diff --git modules/disablepwstrength/disablepwstrength.js modules/disablepwstrength/disablepwstrength.js
deleted file mode 100644
index adfa41d..0000000
--- modules/disablepwstrength/disablepwstrength.js
+++ /dev/null
@@ -1,6 +0,0 @@
-// $Id$
-
-// Disable password security check by overwriting user.js behavior
-Drupal.behaviors.password = function(context) {
-  return;
-}
diff --git modules/disablepwstrength/disablepwstrength.module modules/disablepwstrength/disablepwstrength.module
index 6e89ae6..b82251b 100644
--- modules/disablepwstrength/disablepwstrength.module
+++ modules/disablepwstrength/disablepwstrength.module
@@ -1,13 +1,17 @@
 <?php
-
 // $Id$
 
-/*
+/**
+ * @file
  * Disable password strength checker using code from
  *  http://www.drupalcoder.com/story/409-disabling-password-check-in-drupal-6
- *
- * Implemententation of hook_init - simply loads the relevant JS file
+ */
+
+/**
+ * Implemententation of hook_init().
  */
 function disablepwstrength_init() {
-  drupal_add_js(drupal_get_path('module', 'disablepwstrength') .'/disablepwstrength.js', $scope='footer');
+  if (arg(0) === 'user') {
+    drupal_add_js('Drupal.behaviors.password = function () {};', 'inline', 'footer');
+  }
 }; //hook_init
