Corrected favoritesList.js convertToOrdinal function