Changed the way peach templates are loaded to make it more accessible to external JavaScript.