templates to JS build