Add extra scope attribute 'propertiesField' to display nested data
outsource template out of js into separate .html file