Moved pwgen.js to a node module. Worked around password length bug.