Is it possible to replace JavaScript with Java 8?