The script to create a first page from the templates is:
//get the array of the template object for the PDF;
var aTemplates = this.templates;
// create a new page from the first template placing it at the end of the PDF and renaming the fields;
// rename the fields, do not overlay;
aTemplates[0].spawn({nPage: 0, bRename: true, bOverlay: false});
You can hide the template and run this code from the console.
The code to spawn a template fromt he button should read:
//get the array of the template object for the PDF;
var aTemplates = this.templates;
// create a new page from the first template placing it before the template and rename the fields;
// rename the fields, do not overlay;
aTemplates[0].spawn({nPage: this.numPages, bRename: true, bOverlay: false});