Javascript library to validate passwords