working ayni.js