jQuery UI Widget Factory
The jQuery UI Widget Factory is an extensible foundation on which all jQuery UI widgets are built. Using the Widget Factory to create widgets provides convenient state management as well as shortcuts for common tasks, such as exposing widget methods and changing options after instantiation.