You mean add JS to the RTD designer?
If that's the case, I would simply put this in the FOOTER CODE FOR DESIGNER section of your Stores Setup:
<script src="myscripts.js"></script>
And if you'll need to fire something on full load, you can use the function described here:
http://support.realtimedesigner.com/forum/read.php?1,5368