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
missing space
Merge pull request #13 from mamod/master

Pass element to formatter function