Unlike is another link. It can't satisfy this condition, because you have attached click event only for the link having "like" class.
$('a.like').click(function (){
});
If you remove the class selector, then Unlike link will also work. That is...
$('a').click(function (){
});