added support for registerTemplates.js