Messages within script calls problem.

Hey! I'm currently working on a project that relies completely on script calls and I ran into a problem.
I currently have this code:

Code:
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.setFaceImage('Actor1',0);

choices = []; params = []; $gameMessage.setChoices(choices, 0);

choices.push("Yes");
choices.push("No");
params.push();

$gameMessage.setChoiceCallback(function(responseIndex)

{if (responseIndex ===0) {$gameMessage.add("aaaaa");}

else {$gameMessage.add("bbbb");}

});

After testing this code, after selecting one of the choices, nothing happens. There is no message displayed.
I've searched around and it seems that I can sort of fix this issue and it's seems like it's a pretty common problem people stumble upon. Looks like the only work around this so far is creating new commands and placing messages with "\^" in between those commands, which is kind of odd. I really need this to be able to run in one script call command only though.

Help on this would be greatly apretiated.

Original thread: https://forums.rpgmakerweb.com/threads/messages-within-script-calls-problem.124558/