title: Relative path from a JS file that lives on a different domain
body: <p>I have an html file that lives on www.domain-a.com</p>
  
  <p>It references a js file that lives on www.domain-b.com/somedirectory/js</p>
  
  <p>Within the js file I need to be able to point to www.domain-b.com but using relative paths only to a file such as www.domain-b.com/somedirectory/images</p>
  
  <p>Any advice? Currently I am trying something like...</p>
  
  <pre><code>myImgUrl = '../images';
  </code></pre>
  
  <p>But when that is injected onto the page, that is showing up in the HTML as something like...</p>
  
  <pre><code>&lt;img src="http://../images/somefile.jpg" /&gt;
  </code></pre>
  
  <p>Feedback is always appreciated.</p>