Question: I have one optionSet named STATES. Another named RESTAURANTS. 

My goal is to filter the Restaurants optionSet according to what State is selected. 

My current method is to design the values of the options where: 

```
States[0] = 1000
States[1] = 2000
States[2] = 3000

```

Then, Restaurants:

```
Restaurants[3] = 1003
Restaurants[30] = 2004

```

I then iterate through the Restaurants when the States field is changed. If the restaurant value is not in the range of the selected State, I call removeOption(Restaurant.value). 

My problem is that if the State is changed more than once, every value will have been removed, because I don't "refresh" the optionset or "replaceOption". 

Is there any way to display all optionSet values after they have been removed via removeOption, via javascript?

Answer: 
Exclude all CkFinder assemblies from project, then you can run project.
For any with this problem check if you included in your project an folder that is an project too.