GWT (Google Web Toolkit) lets you write webapps using only Java, the GWT compiler compiles/translates the code to optimized and cross-browser compatible JavaScript. If you also use Java on the serverside, you're down to one language. There's also a plugin that integrates nicely with Eclipse.