As a prerequisite, jQuery UI requires jQuery library be loaded on the web page.
Add a reference to jQuery just before you call jQuery UI and the error will go away.
If you are using Google CDN, you can add the below line:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>