autosuggest: support setting classes on selected tags