assigns autocompleter value to angular scope

https://www.openproject.org/work_packages/15643
We shouldn't really mix `document.getElementById`, `angular.element` and `jQuery` APIs. I think it's probably best to standardise on `angular.element` (you'd also have the added benefit of being able to chain here)