You're venturing into territory beyond the scope of this forum / not officially supported by IA. Take a look at this thread -- you can use an inline frame to link to a Web Dev-mounted HTML resource. It gets pretty complex and your results may vary.
Exchange Resource to use Javascript with Perspective
I misunderstood what you are doing!