Stanleek,
Apologies for missing out your post earlier. I could not replicate the problem at my end.
Can you please check if the project has JavaScript facet installed ? Right click on the project > Properties > Project Facets and check if the JavaScript facet is enabled.
Please share with us the MyEclipse version details from Help > About MyEclipse section along with a screenshot of the Project Facets page to help us investigate further.
Apologies for inconvenience caused.
–Swapna
MyEclipse Support