Problem with Jquery UI dialog and require.js file

Problem with Jquery UI dialog and require.js file

Hi everybody!!!

I'm first time on this forum and i have a problem.
I have 2 script and 1 html file that shows popup depending on requests.I'm doing this for one company.
They have request and put them on various clients pages...but problem is that most client pages has require.js file which can be found here:  http://requirejs.org/docs/release/2.1.15/comments/require.js and also here:  http://github.com/jrburke/requirejs ... and something causes jquery-ui not to load and my popup.dialog() is not working (i'm getting error => Uncaught TypeError: undefined is not a function)
If someone can help me with this I'd be grateful.
Thank you.