old_contents: $(document).ready(function (){
      $(window).scroll(function() {                
          if( $(window).scrollTop() > 55 ){
              $('.xnav').addClass('addshadow');
          }else{
              $('.xnav').removeClass('addshadow');
          }
      });
      $('img').click(function(){
          location.assign('http://loka.com');
      });
  });
  
new_contents: //once the document is loaded 
  $(document).ready(function (){
      //if you want to add scroll down effects 
      $(window).scroll(function() {                
          if( $(window).scrollTop() > 55 ){
             
          }else{
             
          }
      });
      
  });
  
subject: fix javascript file