Simple widget definition and control using jQuery plugins