Get JS instance of Tabulator in custom script

Hello,
is there a way to get an instance of javascript Tabulator object within a custom script? I found that Tabulator class has a function findTable, but I am not able to figure out what argument should I pass to it. Even trying Tabulator.findTable(‘*’) returns False.

See my simple test script below

import panel as pn
import pandas as pd

test_script = """
    var obj = Tabulator.findTable('#my_table'); //This function always return false
    console.log(obj);
"""

df = pd.DataFrame({
    'A' : ['spam', 'eggs', 'spam', 'eggs'],
    'B' : ['alpha', 'beta', 'gamma', 'delta'],
    'C' : [1, 2, 3, 4]
})

test_btn = pn.widgets.Button(name='Test')
test_btn.js_on_click(args=dict(arg_input="TEST_INPUT"), code=test_script)

tabulator = pn.widgets.Tabulator(df, name='my_table')

layout = pn.Column(test_btn, tabulator)

pn.serve(layout)