title: javascript getting substrings in URL
body: <p>In my website I use:</p>
  
  <pre><code>- www.example.com/es/index.html
  - www.example.com/en/index.html
  - www.example.com/ch/index.html
  </code></pre>
  
  <p>How can I easily get the value language? (es or en or ch)</p>