refactoring faceoff.js file to put template managers into separate files