fix old reference to $element

data-uk-button triggered error when clicked due to old reference to $element