added support for custom data- attributes