ualFolder.Locations.length; i < length; i++) {
                    var id = "chkFolder" + index + "_" + i;
                    var location = virtualFolder.Locations[i];
                    var isChecked = currentUserConfig.LocationsExcluded.filter(function (current) {
                        return current.toLowerCase() == location.toLowerCase();
                    }).length;
                    var checkedAttribute = isChecked ? 'checked="checked"' : "";
                    html += '<label><input is="emb