Use Kami via Javascript to insert comment or trigger Javascript in surrounding HTML?

Hi all,

is it possible to call Kami via Javascript from surounding HTML (where the PDF is embedded) to insert a comment?

And the other way: To click on a button inside a PDF (where the PDF contains Javascript) and trigger with this pdf-contained Javascript via Kami the surrounding HMTL? Something which is possible with Adobe Acrobat using the hostcontainer object of AcroJs.

Thanks! Would help very much. This way we could build our application on Kami, which of course would include that our users buy a Kami license.