I don't understand js but can usually make do by copying other peoples code.

I want to jump into a new galaxy, scoot across to a 'spy' who sends me an 'on-screen message' and also uploads instructions to my 'mission screen'.
I can get this to work reasonably well with the following code:
this.playerEnteredNewGalaxy = function()
{
...
system.legacy_addShipsAtPrecisely("bountyhunter", 1, "w", [0, 0, 0.3]);
mission.setInstructionsKey("mission_galaxy_instructgo");
...
which puts my bounty hunter at the waybeacon
and the code in the bountyhunter AI:
"FOUND_PLAYER" = ("commsMessage: [hunter-here]", "setAITo: exitingTraderAI.plist");
which displays an on-screen message.
The above works well, but i have my mission sceen updated with the message BEFORE I rendezvous with the bountyhunter.
What is the code for updating the mission screen only after I get in range of the bountyhunter, i.e the on-screen message and the mission screen instructions occur together.
Thanks