Added js functions for unfavorite and add to cart