Added support for setting options as data attributes. Closes #179