added a favourites system with cookie storage