Added query parameter

Added query parameter so you can write your own querying function. In
this way you could achieve an ajax autocomplete