Do I correctly read that Zen Cart is properly outputting the page-specific js that you've asked it to?
And that your problem is really just that your custom javascript/jquery code isn't performing as you intended?