ported javascript snippet to asciidoc