Solution for Issue #152: Custom template option doesn't work 

Iv'e moved this.template assignment to occur before calling this.setup() in the constructor.
that way when this.setup() is called, this.template() is the correct template - the default one or the customised one.