AMD support

http://wiki.jqueryui.com/w/page/66995889/AMD-Support

Work on progress...