[javascript] - small fix for destroying widgets on embedded xforms unloading