Enqueue script in header

You just have your arguments lined up wrong. Change the line to

wp_enqueue_script( 'ajax-products', plugins_url( '/js/ajax.js', __FILE__ ), array('jquery'), '1.2', false );

You can use plugins_url() with the second parameter of __FILE__ to get the directory of the specific pluign, and in the first argument you pass the relative location of your script.

The rest is pretty straight forward – dependencies, version and $in_footer. As you passed one more arguments, I suppose WordPress thought your version (fifth argument) is true, as you passed ‘1.2’. But I am not sure about that.