JavaScript implementation of makepasswd (https://launchpad.net/ubuntu/+source/makepasswd)