Slidebox and Templates

I’m wanting to use slidebox to swipe between ‘html’ files in my template folder and have each html load once you swipe. Obviously, it’s easy to put in your own content in the slidebox but I’m having issues inserting html template. I could use the ‘script=id’ deal, but it fails when you are using a feeds.html (getting json data) and having a ‘custom.html’ that displays how each feed looks.

Any ideas?