title: Rails 4 - how to reference a javascript source in vendor file
body: <p>I have just discovered that I need to amend my GMaps for Rails setup by inserting javascript files directly in my app. <a href="https://stackoverflow.com/questions/37558410/rails-4-gmaps4rails-map-wont-render">Rails 4 - Gmaps4Rails - map won&#39;t render</a></p>
  
  <p>I have cloned both infobox and markerclusterer repos and am now stuck in trying to reference the relevant files in my app.</p>
  
  <p>I have the folders of files that came with the clone in my vendor file.</p>
  
  <p>I understand the javascript files that I need to use are: infobox.js and markerclusterer.js </p>
  
  <p>These files are located in:</p>
  
  <pre><code> vendor/js-marker-clusterer/src/makerclusterer.js
  vendor/v3-utility-library/src/infobox.js
  </code></pre>
  
  <p>I want to use them in place of the code in this view:</p>
  
  <pre><code>&lt;script src="//maps.google.com/maps/api/js?v=3.18&amp;sensor=false&amp;client=&amp;key=&amp;libraries=geometry&amp;language=&amp;hl=&amp;region="&gt;&lt;/script&gt; 
  &lt;script src="//google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.14/src/markerclusterer_packed.js"&gt;&lt;/script&gt;
  &lt;script src='//google-maps-utility-library-v3.googlecode.com/svn/tags/infobox/1.1.9/src/infobox_packed.js' type='text/javascript'&gt;&lt;/script&gt; &lt;!-- only if you need custom infoboxes --&gt;
  </code></pre>
  
  <p>Do I need to reference the javascript files in app/application.js? If so, at what point in the path do I need to start (given these files are not inside the vendor/assets/javascripts folder)?</p>
  
  <p>Also, I understand I need to incorporate the markerclusterer images somehow. Those have also come through in the cloned repo and are stored in vendor/js-markerclusterer/images folder. How do I reference these so that they work in the view?</p>