text: 
  var url = 'http://instagram-laravel.com.devel';
  
  window.addEventListener("load", function () {
  
      $('.btn-like').css('cursor', 'pointer');
      $(".btn-dislike").css('cursor', 'pointer');
  
      function like() {
  
          //Boton de like
          
          $('.btn-like').unbind('click').click(function () {
  
              $(this).addClass('btn-dislike').removeClass('btn-like');
              
              $(this).attr('src', url+'/img/like.svg');
  
              $.ajax({
                  
                  url: url + '/like/' + $(this).data('id'),
                  
                  type: 'GET',
                  
                  success: function (response) {
  
                      if (response.like) {
                          
                          console.log("HAS DADO LIKE");
                      }
                                      }
                  
              });
  
              dislike();
  
          });
      }
  
      like();
  
      function dislike() {
  
          //Boton de dislike
  
          $('.btn-dislike').unbind('click').click(function () {
  
              $(this).addClass('btn-like').removeClass('btn-dislike');
              
              $(this).attr('src', url+'/img/no_like.svg');
                          
              $.ajax({
                  
                  url: url + '/dislike/' + $(this).data('id'),
                  
                  type: 'GET',
                  
                  success: function (response) {
  
                      if (response.like) {
                          
                          console.log("HAS DADO DISLIKE");
                      }
                  }
                  
              });
  
              
              like();
              
          });
      }
  
      dislike();
      
      $("#buscador").submit(function(e){
                  
          $(this).attr('action',url+'/users/'+$('#buscador #search').val());        
      });
  
  });