Fix JS error on registration metadata entry page