JavaScript was created as a wrapper for Java Applets. Oracle optained both when it bought Sun. The official name of the language is ECMA Script, but people insist on calling it the trademarked name because ECMA makes people think of an unpleasent skin condition.