drupal_add_js - working with inline but not file
With Drupal instead of using $(document).ready, you can/should use Drupal.behaviors. Here is a boilerplate JavaScript wrapper you can use:

(function($, Drupal) {

  // Custom functions and variables can go here

  Drupal.behaviors.moduleName = {
    attach:function() {
      // Put your document's onload code here
    }
  };
}(jQuery, Drupal));


By the way, now that it's all done, to go back to the original topic, I wouldn't/don't use drupal_add_js() at all. Instead, you can do this:

&lt;?php
if($form_id == 'job_node_form') {
  $form['#attached']['js'][] = array(
    'type' =&gt; 'file',
    'data' =&gt; drupal_get_path('module','conflict') . '/js/test.js',
  );
}
?&gt;


This attaches the file directly to the form, allowing it to be overridden further down the line through the context of the form it belongs to.