Added jquery ui load, so that dialogs dont fail.

In the backend the jquery ui is not loaded pr.default and when ding_popup loads the jquery ui it not certain to finish before dialog triggers and this results in a .dialog is not defined.