old_contents: $(document).ready(function(){
    highlightCurrentPage();
  });
  
  function highlightCurrentPage(){
    var currentUrl = document.URL;
  
    var regex = /http:\/\/(.+)\.com\/(\w*)\//;
    var baseUrl = currentUrl.replace(regex, "$2")
    console.log(baseUrl)
    $('a[href="/' + baseUrl + '/"]').addClass("current_page")
  }
  ;
  
new_contents: $(document).ready(function(){
    highlightCurrentPage();
  });
  
  function highlightCurrentPage(){
    var currentUrl = document.URL;
    var baseUrl;
    if (currentUrl === "http://www.catherinev.com/"){
      baseUrl = ""
    }
    else {
      var regex = /http:\/\/(.+)\.com\/(\w*?\/).*/;
      baseUrl = currentUrl.replace(regex, "$2")
    }
   
    console.log(baseUrl)
    $('a[href="/' + baseUrl + '"]').addClass("current_page")
  }
  ;
  
subject: update JS so home page will be highlighted