added loadTemplate() to formation.js for loading a single template item