First of all, JavaScript is not Java. It has nothing to do with Java (The language and its associated technologies from Sun Microsystems). To be honest, I'm not even sure why it's called JavaScript.
Thanks to the near universal nature of web technology, JavaScript has become an almost equally universal programming language. With this in mind, Google is continuing to appeal to JavaScript ...