Create an autcomplete plugin using any library or framework. The suggestions come from a web service provided.
Sigiloso
I used AngularJS. I created a directive that rendered a text input and a ul with each option. I used a container/component pattern.