Adding a script to a template site is fairly easy.
First make a copy of wxnewpage.php to a new wx....php name.
Use the docs for the script you want to add and insert the PHP code between the <div id="main-copy"> ... </div> on that page.
For example, to add a forecast discussion from
https://saratoga-weather.org/scripts-NWSmisc.php#NWSAFDDownload the script from that page, customize it per the docs on that page, upload the forecast-discussion.php to your site.
In your wx....php page created above (using the docs again) just put
<?php
$doIncludeFD = true;
include("forecast-discussion.php"); ?>
in the area cited, and upload the wx....php page.
Follow a similar process for every page you want to add. Don't forget to include the new page in your flyout-menu.xml so it will be linked on your site via the flyout menu.