Switched Templater to return an instance instead of a prototype