moving functions related to autocomplete on multi forms

Moved javascript related to autocomplete into the edit_metadata-js. fixes #68