refactored js to add new form fields on click