Ported JS API documentation to asciidoc