[objectautocomplete] Update to the new Ajax API. Make the samples application functional again.