Fix autocomplete.
* The old version was a hack that guessed the url based on the location of the script.
* Instead, we'll use reverse, assign it to a data-attribute on the widget, and have the js use that.