Issue #1494: Add support for the Nashorn JavaScript engine