Fix JS error in coverphoto.js