Ajax-filtering of datalists (basically working, but has some minor issues - more cleanups to follow)