js object and templates for resource metadata processing