title: Append to string in JavaScript
body: <p>What I have is very simply this:</p>
  
  <pre><code>myDir = location.href;
  myDir = myDir.substring(0,hipsDir.lastIndexOf("/",hipsDir.length));
  </code></pre>
  
  <p>Now myDir will point to the current folder. Now all I want is to get the variable to point to a different folder. So instead of /path/to/this/ I would like to have /path/to/this/and/that</p>
  
  <p>I just can't figure out how to append the string here…</p>