Fix bug with templates being undefined
Merge pull request #10 from SendbotSoftware/rohanbk/MakeTemplatesAMDCompatible

Fix bug with templates being undefined