temporary fix because of upstream Dialog change, jQuery will be removed in the near future
Automatically rewritten for npm.