How to read SimVar under connectedCallback() with .js ToolBar code

It seems the global SimVar is not available immediately on connectedCallback.
See previous discussion here: https://devsupport.flightsimulator.com/t/3581