How can I change JavaScript of the form fields?