JSDoc annotations are a great way to access code completion in Javascript projects in Eclipse. Given below is a link that describes JSDoc annotations in detail..
https://wiki.servoy.com/display/public/DOCS/Annotating+JavaScript+Using+JSDoc;jsessionid=E3E8DE328428CF512BFA4BB158CE0821