Updated favorites to handle the data-tag attribute