Implemented adding to favorites (jquery)