Password Strength Checking JavaScript Code