Corrected favorites.js (passing incorrect parameter)