Thanks. Last time I looked at JS in Sun Java, it was in interpreter mode only due to license issues, so I always bundled Rhino with my projects to be able to precompile JS code, so it will run faster. But now performance of Nashorn is pretty impressive: https://blogs.oracle.com/nashorn/entry/nashorn_performance_w... .