Get current url
var url = window.location.protocol + "//" + window.location.hostname + ":" + window.location.port;