title: How to parameterize/transliterate in Javascript?
body: <p>In Ruby on Rails you can easily convert "any" text into a format which would work for subdomains/pathnames.</p>
  
  <pre><code>1) "I am nobody." -&gt; "i-am-nobody"
  2) "Grünkohl is a german word." -&gt; "grunkohl-is-a-german-word"
  </code></pre>
  
  <p>I'd like to do this on the client-side for high responsiveness (alternative would be via Ajax).</p>
  
  <p>The last example is called transliteration (converting Umlauts and other non-latin alphabets letters into latin ones).  Transliteration would be a nice2have feature (in such cases I could fallback to Ajax to let Iconv do it).</p>
  
  <p>Anybody knows how to do this with JavaScript? My current code works fine but has issues with multiple blank spaces, and <code>Tête-à-tête</code> becomes <code>Tte--tte</code> which is just ugly.</p>