applying template to schema.js