To edit JavaScript embedded in HTML or JSP files, create a project that supports JSP or HTML. JSDT Requires no additional configuration for WST based projects that support HTML or JSP files.
Below are instructions for a Static Web Project (HTML + JavaScript + CSS) but many other project types will work.
Select File --> New--> Project
Expand the Web folder and choose Static Web Project from the New Project Wizard Dialog
Type a project name in the Project name field and click Finish