Composite JavaScript UI framework