Refreshing visitor tab

I have added a custom visitor tab to my site with a template modification. One of my pages adds an item (using AutoValidator so it isn't reloaded) to the database which is shown in the visitor tab. However, I need to reload the page for it to reload the popup inside the tab - I don't want to have to reload it - I just need it to fetch the popup again. I have looked through the xenforo javascript and haven't been able to find a way to do this.
Thanks in advance!
Okay, I've worked out how to make it refresh, by setting to 'loading' variable to null.
However I can't seem to access this variable from the javascript console or my other javascript file. I don't reallyunderstand jQuery that well so could someone explain how to do this please?