consolidate autocomplete.js into edit.js