Update autocomplete.rb

process a block after the autocomplete items have been returned