Problem with dialog demo code

Problem with dialog demo code

I'm extremely new to jQuery, although not new to javascript in general. I'm trying to use the UI dialog widget. I've downloaded a .min.js file containing the dialog widget and a few others, and already have the core .min.js.

I copied the demo code directly from the UI doc for modal form and pasted it into a plain html file. Clicking the button does not work; nothing happens. Also, the form that's supposed to be displayed in the dialog shows at the top of the page.

Can anyone tell me if there's something else I need to do to use the demo code? And how do I go about debugging this jQuery stuff in Chrome? (I do have FireBug Lite installed; just haven't quite figured out how to use it for jquery.)

(I tried to attach my file, but the site won't let me attach an HTML file - here's a link to my test sample.)