conver the widget to jquery, clean up