There are two methods for incorporating JavaScript into your sessions:
Static page
Frameset - With this option you benefit from dynamic session generation.