Fix JS error on frontpage