For the most part I've been able to hack aw's json converter to produce much of the js I require (I tend to process the data server side and just pass results into jQuery libraries for client side handling). Otherwise I just hack ugly strings together.