Javascript and URL

 <script>
   $(document).ready(function () {
    
   if(window.location.href.indexOf("home") > -1) {
     $( "body" ).addClass("home");
    }

     });
</script>