JavaScript password tester