drupal_add_js not working
I usually avoid calling drupal_add_js() and use the #attached property of the render array. The advantage of using #attached is that you don't need to implement additional hooks, the js is only added when needed, and (as I've been told) it works better with caching. Your code would look something like this:

function myid_print_menu() {
  $items = array();
  $items['myid_print/table_pager'] = array(
    'title' =&gt; 'Table Pager',
    'page callback' =&gt; 'myid_print_table_pager',
    'type' =&gt; MENU_CALLBACK,
  );
  return $items;
}


function myid_print_table_pager() {
  $build = array(
    '#markup' =&gt; 'Hello world!',
    '#attached' =&gt; array(
      'js' =&gt; array(
        array(
          'data' =&gt; '$(document).ready(function () { alert("Hello!"); });',
          'type' =&gt; 'inline',
        ),
      ),
    ),
  );
  return $build;
}


Disclaimer: untested code, please let me know if it doesn't work as expected.