Generic Term is key
Do a simple google search of javascript - all the first few matches are text like "What is JavaScript? JavaScript is the programming language of the web." and not a TM or ® in sight.
How to prove? go to any large tech conference, randomly poll 200 people with 3 questions:
- do you know what javascript refers to?
- who owns or controls javascript?
- are you aware that it is a trademark?
I'd be shocked if Oracle was mentioned in even 5% of the answers to the first 2 questions, and if more than 20% said yes, nevermind mentioning Oracle, to the third I'd be tempted to just give up.
perhaps a nuanced ruling might be that "JavaScript" (upper case J & S) is an Oracle-owned trademark, but "javascript" and "js" are generic terms (and hence not trademarkable)