Text prediction with AngularJS, not completed