convert some more autocomplete functions to handlers, they cannot just
be all run in document ready as they cannot attach to things at that
point!