touched up javascript function for favoriting all items in a predesign