Refactored isValidTemplate out to template.js, added createProject method