added loadNewTemplate() method to formation.js