TUIC is an UI Library specially designed for Web Application Development.
It is as flexible and modular as you can get. Required functionality is fetched dynamically, keeping the framework to a minimum weight.
Bundled with a nice set of components, it can provide modularity, and the best known practices on Web Application Projects.