Improved widgetizer. Custom DOM traversal method.