fix for RAVE-1089. Passes a function wrapper with a call to the widgetOnLoad function rather than just the function name, to display rendered W3C widgets