making loadTemplates function more generic by removing App.templates references and instead inputting the template array list directly into the function