Ryan and Dave,
Thank you guys for the feedback.
It helped a lot. I don't know how but it works! (sharing and writting about difficulties surprisingly open the mind. It makes you to look outsite the box.
It turned out I wrote the datasource on TCL and a json structure to move the data here and there, between the javascript and TCL structures.
I saw openacs lacks json interfaces. Its API is very poor. Isn't?
Am I correct?