added support for data-widget HTML attribute