Weighted (loosely) password generator module for JavaScript