//var SERVER = ""; 
//var SERVER = "http://localhost/";

//var SERVER = "http://localhost:2066/wwwroot/";  

var wwwroot = "";

var Port = location.port;

if (Port != "")
    wwwroot = "enroute/";

var SERVER = location.protocol + "//" + location.host + "/" + wwwroot;

//  enable to deploy on the website
//var SERVER = "http://www.metasplat.com/";  //  enable to deploy on the website

