Hook the script up to a custom event, this way you can call it with specific value directly:
Here, as soon as the widget comes to life.