I had a small project that asked for a URL and a pixel-image to be tracked. Another requirement was to replace a certain string in it with a timestamp of some sort.
#jquery
jQuery onLoad for Body-tag
<script type="text/javascript">
$(document).ready(function() {
someFunction();
…
});
</script>