Firstly...once you load javascript...you can't unload it
The setInterval
problem will require using clearInterval
Declare some esoteric name that would make it fairly unique as a global variable when you initialize setiIterval;
Make sure you declare the var
outside of $(document).ready
before using it
var my_super_form_submitter
$(document.ready)function(){...
my_super_form_submitter=setInterval(func.....
Then whenever you load a new page
if(my_super_form_submitter)
clearInterval(my_super_form_submitter)
As for collisions with other methods....you could adopt a content class protocol for your page specific code. On each page load, change class of content div...then use that class within selectors for jQuery