Nashorn-based scripting