AngularJS App with elasticsearch DB learning exercise