Fix no javascript in web widgets.

From #6234.