Well, actually my code works if I manually insert jQuery and jQueryUI.
Probably a bug with jsFiddle.
Updated jsFiddle: updated
To be more precise, my first attempt was to add jQuery and jQuery UI using jsfiddle:

. :
Uncaught TypeError: "safari" undefined $. widget._mouseDown @jquery-ui.js: 648 ( ) @jquery-ui.js: 582jQuery.event.dispatch @jquery-compat- git.js: 4894jQuery.event.add.elemData.handle @jquery-compat- git.js: 4551 67jquery-ui.js: 656
Uncaught TypeError: "msie" undefined
:


http://code.jquery.com/ui/1.11.4/themes/redmond/jquery-ui.csshttp://code.jquery.com/jquery-2.1.3.min.jshttp://code.jquery.com/ui/1.11.4/jquery-ui.min.js
.