how to include a js variable inside baseurl code example Example: javascript get base url console.log(window.location.origin);