Using the .js file eliminates the need to duplicate javascript statements or functions for multiple pages in a given site.
View the .js file