AngularJS directive to automatically show credit card flags while typing in an text input