js mendapatkan url dasar
var url = window.location.origin;
Skipper
var url = window.location.origin;
window.location.pathname
var base_url = window.location.origin;
var host = window.location.host;
var pathArray = window.location.pathname.split( '/' );
console.log(window.location.origin);