Critical Javascript Error when using OBJECT tag

I am total backbase newbie, trying to port an existing mapping application over to a Backbase for JSF based web site, and I'm having a few problems with the main component - a map viewer implemented as an activeX control.

I've placed it inside the bjs:box where it is meant to reside like this:

<bjs:box style="height: 880px">
 
  <f:verbatim>
     <OBJECT id="ECWView1" width="100%" height="100%"    
       classid="clsid:D147430C-86CD-4E6F-A807-93FBC496D201"
       codebase="/ecwplugins/ncs.cab#version=3,1,0,229">
               
     </OBJECT>
  </f:verbatim>
</bjs:box>

Although the ActiveX control does appear, I always get the following error when the page is first loaded:

Message: 1. [11:51:48.781] CRITICAL: Javascript error: 'Error, Unexpected call to method or property access.'.

Could anyone tell me where I'm going wrong?
Thanks.