Client-side JavaScript API for password generation.