Using Nashorn as an embedded interpreter