Add ability to specify options as data attributes, close #51