AngularJS directive to automatically show credit card flags while typing