config.templatesFn is optional, so should use an empty object by default
Merge pull request #12 from andrewburgess/fix-templatesfn-missing

config.templatesFn is optional, so should use an empty object by default
Add default template function object.
Fixes #11 breaking change from release 0.3.1.
Release v0.3.3