Moved autocomplete setup to happen before any pre-defined tags are added to make sure items not in pending list are highlighted correctly.

Refreshed minified version.