wrote a search filter for AngularJS 1.2