fixes consolidates favorites button js