How get admin url in js file ? Js file call AjaxController and this Js file are called to System -> Config from system.xml
You can try this
this.values.baseUrl; in your js and you can also refer
you have admin base url, so you can get this base url using
window.values.BASE_URL or may be
kindly check here it will works.