added support for onWidgetLoaded in embed script