new controller js for templates
fetch templates on init