Custom control’s jquery loads before masterpage loads jQuery

I’m creating a custom control which utilizes the jQuery.UI autocomplete function. My application has a standard Webform Masterpage which includes a ScriptManager tag. I am embedding a javascript file which has the following code. $(document).ready(function () { var param; var p = ‘<%=this.PostbackURL%>’; $(‘#<%=AutoCompleteTextBox.ClientID%>’).autocomplete({ source: function (request, response) { param = $(‘#<%=AutoCompleteTextBox.ClientID%>’).val(); console.log(‘Param: ‘ +…