custom module js loaded before the module which it depends, Drupal.behaviors
Maybe you could try altering the weight of the script you add in your module?

drupal_add_js(drupal_get_path('module', 'MYMODULE') .'/myscript.js', array(
    'weight' =&gt; '999',
  )
);