cleaned up scripts.js and making a more consistent add to favorites (from both arrays)