title: Detect Duplicate URL for domain names using javascript
body: <p>I want to code a check for duplicate url's, but a simple string match will not work, e.g. <code>string1 == string2</code>. Consider the following url's as an example:</p>
  
  <ol>
  <li>www.facebook.com/authorProfile</li>
  <li>facebook.com/authorProfile</li>
  <li><a href="http://www.facebook.com/authorProfile" rel="nofollow">http://www.facebook.com/authorProfile</a></li>
  <li><a href="http://facebook.com/authorProfile" rel="nofollow">http://facebook.com/authorProfile</a></li>
  </ol>