todo: load js only if widget is present