Exposing a data attribute

Exposing data attribute as I find it a little more natural to use than the loadData function callback (left that exposed to prevent any breaking changes)