Stitch is a JavaScript library that builds pages out of widgets made up of XML enclosed HTML and JavaScript.  It allows components to be managed more easily than separated code.