Added some comments to the JS.
Upgraded to jQuery.ui v1.10.3