Added favorites page stuff back and reverted search.js