Update photos.js

change checkCookie() reference to favExists()