Password TDD Lab in Javascript