Close/Dismiss TI modal window

Hi Apliqo community:

Any suggestions on how we can dismiss/close the TI modal window using a custom JS function? We are experimenting with running a callback function which is triggered after the TI modal window is closed (namely using the parameter below):

"process": {
   "cancelCallback": "demoProcessCancelCallback"

However, in our custom JS function, we need a way to actually close the modal window at the end (as the default behavior of closing when clicking on “X” is no longer active when using “cancelCallBack”. This is the same behavior in the custom callback demo page in Apliqo_Demo. You need to use the keyboard Esc key to get back to the main screen.

Any tips on how we can dismiss the modal window in our JS code? Thanks!