How to store a non-XML document using JavaScript API in Tami

I want store non-XML document and store his ino:id how reference in XML document.

Thank you for attention. Good luck.