Libraries
Script in the Head Section
HTML in the Body
Note that in addition to jQuery, you need jQueryUI and the jquery-ui.css