With the JVM of the near future [0] running JavaScript natively, that could change again. Long before you know it, you'd be running java-scala-clojure-javascript code inside of the same jvm on the server, and on the client...
[0] http://www.oracle.com/technetwork/articles/java/jf14-nashorn...