Typeahead popup template url was hard coded

The template url should be set via attribute if provided.