Use the new JS core method for a password button.
Fixes #254