Added interface and JS for async calls to password generator