Eclipse Ganymed IDE for Java EE Developers has more than one JavaScript Editors, make sure you are open JavaScript file using "Spket JavaScript Editor" by select a JavaScript file, use mouse right button, in context menu, choose item "Open With -> Spket JavaScript Editor".