successfully got js working for password modal, more difficult than one would think