text: var pathArray = location.href.split( '/' );
  var protocol = pathArray[0]; //http:
  var host = pathArray[2]; //localhost
  var website = pathArray[3] + '/' + pathArray[4]; //matcha/web
  var coreUrl = protocol + '//' + host + '/' + website; //http://localhost/matcha/web
  
  $( document ).ready(function() {
  
      $(document).on('click', '.like', function(e){
          var likeId = this.id;
          var url = coreUrl + "/users/like";
          $.ajax({
              type: "POST",
              url: url,
              data: { likeUserId: this.id },
              success: function(responseData)
              {
                  $("#" + likeId + ".like-toggle").toggle();
              }
          });
      });
  
      $(document).on('click', '.unlike', function(e){
          var likeId = this.id;
          var url = coreUrl + "/users/unlike";
          $.ajax({
              type: "POST",
              url: url,
              data: { likeUserId: this.id },
              success: function(responseData)
              {
                  $("#" + likeId + ".like-toggle").toggle();
              }
          });
      });
  
  });
  