Make xooki2asciidoc work on java8+ based jvm.

Nashorn is not a drop-in replacement JavaScript implementation for Rhino.
see https://bugs.openjdk.java.net/browse/JDK-8025132 for further details