widget and js event