[javascript] Generate random password string with requirements in javascript