I have a JEE project which contains some JavaScript files. I followed the below option to get content assist for Javascript files.
Right click the project -> Configure -> Convert to JavaScript Project
(only .project and .settings folder of the project got modified)