Jquery used to store favourites