Javascript has nothing to do with Java.  Javascript was originally called ECMA Script and was renamed in an effort to capitalize on the popularity of Java.
Java is still one of the best languages out there.