Methods can be invoked from javascript, however return values are not supported.
func test_func(some_arg: int, another_arg: Array):
print("test_func called with args: ", some_arg, " ", another_arg)
$g.example_obj.test_func(123, ["foo", "bar", 567])