1. Right click your project
2. Select Properties -> JavaScript -> Include
3. Select Source tab (It looks similar to the Java Build Path Source tab)
4. Expand source folder
5. Highlight Excluded pattern
6. Click Edit button
7. Click Add button next to Exclusion patterns box.
8. Click Browse button and select the JavaScript source by name.