Suppose the library functions are in prototype.js.
Then place the following in the head element of the JSP page that uses it:
<script type="text/javascript" src="prototype.js"></script>