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