Outbound connectivity (as suggested above) is the answer here. But, why you need another xsjs to be called ? if you are planning to call xsjs from teh same server itself, better you call the JS function. You can call functions inside another xsjs file from your xsjs itself. ( check xsjs library too )
sree