If the page the JSLink is on is not referencing jQuery and jQuery UI scripts, you will need to load them yourself. This can be done by for example:
function loadScript(url, callback)
{
// adding the script tag to the head as suggested before
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = url;
// then bind the event to the callback function
// there are several events for cross browser compatibility
script.onreadystatechange = callback;
script.onload = callback;
// fire the loading
head.appendChild(script);
}
from Include a JavaScript file in another JavaScript file?
then you use it:
loadScript("url to jQuery", loadScript("url to jQuery UI", function (){
// do your stuff here
});
But in my opinion, I always need jQuery on my pages so I add it through a Delegate Control: Adding jQuery to Every Page in SharePoint with Delegate Controls
In this case you can then use
ExecuteOrDelayUntilScriptLoaded("jquery path", function(){
// Your stuff here
});