I would move this to the app controller, maybe. Instead of `$('.visual-search')` use `$element.find('.visual-search')`.

One of the good things about angular is that it provides a way to do everything without needing a global namespace. Using the jQuery function (`$`) should be considered deprecated in h. There is usually an element available via injection from which to start the search. If nothing else, there is `angular.element($document.body)`.