Used _.defaults to cleanup applyTemplateData