Google released their code for the Google Web Toolkit under the Apache 2.0 license.
The interactive applications you’ve seen from Google, like GMail, use this. It allows you to write programs in Java, and then deploy them as Javascript applications and HTML. There are a few demos of applications available on the site, plus tips on how to get started.