title: Javascript error "Cannot convert m to object" on Opera browser
body: <p>I am working on my website and testing it on localhost WAMP server. I have included a javascript on my home page for displaying sliding facebook likebox (using mootools framework). The javascript is working fine on Chrome, Firefox, IE9. However, I can't see the slide box on Opera. </p>
  
  <p>I tried to debug the error after adding my javascript folder (Preferences -> Content -> Javascript options) and I am getting the following error. (I can see the sliding facebook likebox once I include the javascript file from my local drive to Opera content extension, but still I can't figure out the problem.)</p>
  
  <pre><code>Uncaught exception: TypeError: Cannot convert 'm' to object
  Error thrown at line 1, column 47082 in &lt;anonymous function: bottom&gt;(n, m) in http://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js:
      m.appendChild(n);
  called from line 1, column 51362 in &lt;anonymous function: inject&gt;(n, m) in http://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js:
      a[m||"bottom"](this,document.id(n,true));
  called from line 19, column 1 in &lt;anonymous function: FBSideLike.init&gt;() in http://localhost/Demola_Template/media/js/fb-sidelike.js:
      var box = new Element('div', {
  </code></pre>
  
  <p>This is my javascript looks like and calling mootools-yui-compressed.js</p>
  
  <pre><code>var FBSideLike = {};
  
  FBSideLike.init = function() {
  
      var scr = $$('script[fbpage]');
  
      if (scr.length == 1) {
          scr = scr[0];
          var fbpage = scr.get('fbpage');
      } else {
          return;
      }
  
      var border = scr.get('bordercolor') || '3b5997';
      var image  = scr.get('image') || 'plain';
      var base   = scr.get('src').replace('fb-sidelike.js', '');
  
      var box = new Element('div', {
          id: 'fb-side-like',
          styles: {
              backgroundImage: 'url(' + base + 'fb-sidebar-' + image + '.png)',
              backgroundRepeat: 'no-repeat',
              position: 'fixed',
              top: '12%',
              right: -292,
              width: 322,
              height: 200
          }
      }).inject(document.body);
  
      var like = new Element('div', {
          styles: {
              position: 'absolute',
              left: 30,
              width: 292,
              height: 480,
              background: '#FFF'
          }
      }).inject(box);
  
      var toggle = function(dir) {
          box.tween('right', dir &lt; 0 ? -1 : -292);
      }
  
      like.set('html', '&lt;iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F'
                      + fbpage
                      + '&amp;amp;width=292&amp;amp;height=480&amp;amp;colorscheme=light&amp;amp;show_faces=true&amp;amp;border_color=grey'
                      + border
                      + '&amp;amp;stream=true&amp;amp;header=false&amp;amp;appId=************"'
                      + 'scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:480px;" allowTransparency="true"&gt;&lt;/iframe&gt;');
  
      box.set('tween', {
          duration: 550,
          transition: Fx.Transitions.Pow.easeInOut
      }).addEvents({
          'mouseenter': function() { toggle(-1); },
          'mouseleave': function() { toggle(1); }
      });
  }
  
  if (typeof(MooTools) == 'undefined') {
      (function() {
          var mt = document.createElement("script");
          mt.type = "text/javascript";
          mt.src = ("https:" == document.location.protocol ? "https" : "http") + "://ajax.googleapis.com/ajax/libs/mootools/1.2.5/mootools-yui-compressed.js";
          mt.async = true;
          mt.onload = FBSideLike.init;
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(mt, s);
      })();
  } else {
      window.addEvent('load', FBSideLike.init);
  }
  </code></pre>
  
  <p>On my home page I have included the javascript </p>
  
  <pre><code>&lt;script type="text/javascript" src="media/js/fb-sidelike.js" fbpage='*******'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Looking at the error message it looks like the problem is in mootools-yui-compressed.js javascript file. However, I can't figure out what is going wrong, since it is working fine on every other browsers. Is this a browser specific problem or is there something I am missing.</p>