Simple lookup written in AngularJS