Apply classes to autocomplete tag