changed the elements structure. Now it's more compact
added support for jquery UI autocomplete