if(this.basePath.indexOf("/")==0) {
          var origin = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '');
          this.basePath = origin + this.basePath;
          //console.log("this.basePath remapped", this.basePath)
        }