Here is a useful article by John Resig about using a single script element for including a JS library as well as writing some JS code. Normally the following code will not show the alert.
Code:<script type="text/javascript" src="mylib.js"> alert('This will not execute'); </script>
Bookmarks