Calling JS function from index.html

Unfortunately its not working for me. Not sure what the problem is.

I have this in the index html

  <div id="container"> <object type="text/html" data="jscall.html"> </object> </div>

Originally this index.html was used with swf files but has been changed to just do html files. It works just fine.I can navigate through html files I set but can’t get JS code called from Hype to work.