title: Wordpress - .js file loads but does nothing
body: <p>I've made a form and a validation function that goes with it. I enqueued the javascript in the function.php and it gets loaded. The only page that I want this .js to be run on is reservation.php so I've added <code>if ( is_page_template( 'reservation.php ) )</code>. I have also enqueued some jquery that way which also gets loaded but that actually works.</p>
  <p>The problem is that none of my .js functions are working.</p>
  <p>For example amongst them I have an on<code>blur</code> function which does not trigger.</p>
  <p>If I look at the Network tab in F12 tools, I can see that the formValidator.js was loaded, and it has status 200.</p>
  <p>Any help would be welcome. If I can provide any additional information, feel free to ask.</p>
  <p>Thank you.</p>
  <pre><code>function wpse_enqueue_form_validation_script(){
      if ( is_page_template( 'reservation.php' ) ) {
          wp_enqueue_script('formValidator', get_template_directory_uri() . '/js/formValidator.js');
      }
  }
  add_action( 'wp_enqueue_scripts', 'wpse_enqueue_form_validation_script' );
  </code></pre>