playing around with nashorn javascript extensions