AngularJS integration with magicsuggest