How do I remap "jk" to Escape key in Codemirror vim keymap plugin

Hello all o/
So the title says it all. I’m using vim keymap with codemirror and I’m enjoying it. But I also use Vimium extension in my web browser. So when I press Esc then Vimium extension executes its own function and I loose focus in my editor. So I have to manually “click” into the editing area and press “i” for inder again. Which breaks my workflow.

I actually found a solution here How to specify custom mappings for vim mode? · Issue #2840 · codemirror/codemirror5 · GitHub
it says just execute CodeMirror.Vim.map('jk', '<Esc>', 'insert') and you’ll be okay. But I don’t really know how to execute this js snippet in my tiddlywiki. Maybe on startup? I created a new tiddler called $:/plugins/savolla/vim-jk-to-esc and tagged it with $:/tags/StartupAction then set the tiddler type to “application/javascript”. I put the following js code inside;

(function waitForVim() {
  if (typeof CodeMirror !== "undefined" && CodeMirror.Vim) {
		console.log("command is about to execute");
    CodeMirror.Vim.map("jk", "<Esc>", "insert");
		console.log("command executed!!");
  } else {
		console.log("fall to else block...");
    setTimeout(waitForVim, 5000); // Try again in 5 seconds
		console.log("failed..");
  }
})();

I put those expressive debug lines to see output on my console.
So I restarted my tiddlywiki and nothing happened. Nothing appeared on console. then I tried with $:/tags/StartupAction/PostRender and again, nothing happened.

I’m using tiddlywiki version 5.3.6

I’m also using hosting my wiki locally using nodejs and I’m using the following plugins if that information is needed for some reason;

    "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight",
	"tiddlywiki/codemirror",
	"tiddlywiki/codemirror-autocomplete",
	"tiddlywiki/codemirror-closebrackets",
	"tiddlywiki/codemirror-closetag",
	"tiddlywiki/codemirror-keymap-vim",
	"tiddlywiki/codemirror-mode-css",
	"tiddlywiki/codemirror-mode-htmlembedded",
	"tiddlywiki/codemirror-mode-javascript",
	"tiddlywiki/codemirror-mode-markdown",
	"tiddlywiki/codemirror-mode-x-tiddlywiki",
	"tiddlywiki/codemirror-mode-xml",
	"tiddlywiki/codemirror-search-replace",
	"tiddlywiki/katex",
	"tiddlywiki/markdown"
    ],