use localStorage to store favorite.