To remove the JS script, edit the template.html file with any text editor and remove the <script> tag at the bottom of the file, near the closing </body> tag.
Please note, when you remove the script, the next time you open the template.html file in a browser, the width of the container/invoice will automatically be set to 100% of the window. The invoice layout might look strange and broken but no worries, it is not. Also, all command buttons at the top will be removed.
To implement the invoice template in your system properly, you need to adjust the width of the container according to your needs. For A4/Letter print format, we suggest 820px for the container width but you can experiment with other sizes depending on your requirements. You can set the width of the #container element in the /css/template.css file.
For example:
#container {
....