MV Operating $gameMessage.setChoices()

I have a need to make list of options in game with show choices event. I'm already able to create a list but I don't know how to call methods depending on selected choice. Can someone enlight me how to do it with pure JS?
This thread might be of some help to you. https://forums.rpgmakerweb.com/index.php?threads/handling-show-choices-in-javascript.71450/
Yup. I'll take it from here, thank you.

Original thread: https://forums.rpgmakerweb.com/threads/operating-gamemessage-setchoices.128387/