Brendan Eich said "ECMAScript was always an unwanted trade name that sounds like a skin disease". I think the general sentiment is shared fairly broadly.
Then Oracle acquired Sun, and with it, the trademark to Java.
And then this crap started. That was the moment to drop "Java" from the name, everyone knows exactly why.
JavaScript was released in 1996... and not at Sun.
i.e the Language and name both pre-date the trademark.
By the way, when I filed my first trademark application, Sun Microsystems filed an opposition. What a coincidence! This was before Oracle acquired them.