for (var i = 0; i <  this.sites.length; i++) {
        if (this.sites[i].name == siteName)
            return this.sites[i];
    }