Wait, where did frames come into this?
Anyway, I figured it out. It was more of a css problem anyway to do with centering and a rogue position:relative tag.
I'm using JS because it gives exactly the format I want, and, barring any other mistakes I make, works fairly simply.
Working Version