All of xt:scripts functions and tools can be used to output fully customized javascript 
As long as you follow a few rules and work within the constraints and peculiarities of Xtscript 