title: Enqueue Wordpress plugin scripts below all other JS
body: <p>I am developing a simple Wordpress app but I am having an issue as all of the plugin scripts are rendered before those which are enqueued in my <code>functions.php</code>.</p>
  
  <p>Here is a sample section of the <code>functions.php</code>:</p>
  
  <pre class="lang-php prettyprint-override"><code>function my_scripts() {
      wp_register_script('app-js', get_template_directory_uri() . '/javascripts/app.js', array('jquery'), null, true );
      wp_enqueue_script('app-js');
  }
  add_action( 'wp_enqueue_scripts', 'my_scripts');
  </code></pre>
  
  <p>The important this to note is that (following best practice my JS is set to render at the bottom of the page.</p>
  
  <p>I also have couple of plugins running on the theme. The problem is that the output looks like this:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;!-- Note the plugin appears first --&gt;
  &lt;script type='text/javascript' src='http://localhost/wordpress/wp-content/plugins/my-plugin/acl-plugin.js'&gt;&lt;/script&gt;
  &lt;!-- And the main JS appears second --&gt;
  &lt;script type='text/javascript' src='http://localhost/wordpress/wp-content/themes/my-theme/javascripts/app.js'&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I force Wordpress to display the main JS (which i believe is rendered by <code>wp_head()</code> to appear at the very bottom of the page?</p>