title: OpenTok with joomla
body: <p>I am creating the basic video chat with OPENTOK api. i have the code that is working fine in core php but same code when i using with joomla 2.5. page is showing blank. code is given below.</p>
  
  <pre><code> &lt;script src='//static.opentok.com/webrtc/v2.2/js/opentok.min.js'&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
      var apiKey = "&lt;api key here&gt;";
      var sessionId = "&lt;session id&gt;";
      var token = "&lt;Token here&gt;";
  
  
      TB.setLogLevel(TB.DEBUG);
      var session = OT.initSession(apiKey, sessionId); 
      session.on({ 
          streamCreated: function(event) { 
            session.subscribe(event.stream, "videos", {insertMode: 'append'}); 
          } 
      }); 
      session.connect(token, function(error) {
        if (error) {
          console.log( error );
        } else {
          session.publish('myPublisherDiv', {width: 264, height: 198}); 
        }
      });
    &lt;/script&gt;
    &lt;div id="videos"&gt;
      &lt;div id="myPublisherDiv" style="margin-bottom:10px"&gt;&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance.</p>