AngularJS directive for a password strength bar