compiling order in/out

hi…
i use javascript in my project, but i also use a xml-writer-script, which is in cs!

i already moved my scripts because of the compiling order.
now the cs-xml-writer is able to read an array from the javascript.
fine…

but i also want to call the xml-writer-function from a gui-button in a javascript.
that would mean, i have to change the compiling order again, and the first (array-)stuff wouldnt work.

i have no idea for this…
how would you do this?

thanx

i did change my code. now the gui-button is inside of the cs-script… so i dont have extra-trouble with the compiling order.
the problem is solved for me!

but is there another / better way (if i dont want to use only one scripting-language)?
Because of this, i have two locations of gui-stuff… lilbit confusing…

i know, its not the idea to mix the languages all the time.