Fix repeatable form field javascript