AngularJS - Search and small controller script