updates autocomplate example to be more idiomatic.