i'm using adobe dreamweaver, what is the best way to implement the code?

- Make sure you have created a 'Site' for your web site
- Do a 'Find and replace' command (CTRL-F)
- In the window that opens, select: Find in 'entire local site', and Search for 'sourceCode' 
- In the first textfield type: "</body>"
- In the second window type: "Your personal Javascript code</body>"
- Click "Replace All"
- Dreamweaver now searches through all the HTML pages in your "site" and replaces the "endbody tag" with the Javascript code AND the "endbody tag".