code: function compareUrl(urlA, urlB) {
    var same = false;
    
    // Remove url fragments
    if( urlA.indexOf('#') > -1)
        urlA = urlA.split('#')[0];
   
    if( urlB.indexOf('#') > -1)
        urlB = urlB.split('#')[0];
    
    if(urlA != '' || urlB != ''){
        //Remove common subdomain
        urlA = urlA.toLowerCase().replace('www.','');
        urlB = urlB.toLowerCase().replace('www.','');
        
        // Make sure anything ends with / 
        if( endsWith(urlA,'/') == false)
            urlA = urlA + '/';
            
        if( endsWith(urlB,'/') == false)
            urlB = urlB + '/';    
            
        // Look for full match
        if(urlA.toLowerCase() == urlB.toLowerCase())
            same = true;
       
    }
    return same;
  }
docs: compares urls for match ie www.twitter.com/glennjones = twitter.com/GlennJones/