The javascript || will use the first value if it evaluates as true and will use the second if the first evaluates as false.
In this case I presume it checks whether jQuery.ui exists and if it does not then it will evaluate the anonymous function. If jQuery.ui does exist then || will not evaluate the second value and so the anonymous function will not be run.