updated plugin to take data-value attribute