Uncaught Error: cannot call methods on page prior to initialization;

Uncaught Error: cannot call methods on page prior to initialization;

I'm getting this error in the console:
Uncaught Error: cannot call methods on page prior to initialization; attempted to call method 'bindRemove'

It happens when I try to activate a panel widget.
here is the markup (it has <?php ?> becouse it's part of a wordpress theme I'm working on)

  1. <!-- /panel -->
  2. <div data-role="panel" id="menu-panel">
  3.     <?php  wp_nav_menu ($args); ?> 
  4. </div>
  5. <!-- /panel open btn -->
  6.  <header data-role="header">
  7.     <a href="menu-panel">open</a>
  8.  </header>
the page is  http://ugauga.com/

Thanks