You can directly add a script element inside the body of page.
1. For example, to add the "last updated line" to your pages, In your page text, add the following:
<p>blah, blah, blah, blah, blah.</p>
<!-- Hiding from old browsers
document.write("Last Updated:" +
<p>yada, yada, yada.</p>
Functions and global variables typically reside inside the <head> element.
<title>Default Test Page</title>
var myVar = "";