transport.js: Add handler to call function on remote typeahead