Please refer to this link for the usage and parameters of the address generation function: https://learn.iota.org/tutorial/generating-addresses-learn-the-basics
Tested using folowing recommended JS implementation from above link: https://github.com/domschiener/iota-address-generator