assign (this.options.template || this.template) to this.template before this.setup() is called in the constructor.

that way when this.setup() is called, this.template() is the correct template - the default one or the customised one.