Pass element to formatter function

let others control elements as well as values associated with template
formatters by passing element as this to to the formatter function