Fixing a few bugs with non-ajax autocomplete and datasources