$.ajax({
url: "test.html",
context: document.body
}).done(function() {
$( this ).addClass( "done" );
});
let autoComp = {
hide: function(){...},
some: function(){...}
}
autoComp.other = function(){...};
this.autocomplete = autoComp ;