Increment numOfFavorites on the server side funciton is added