To repeat something on every page, I think you need to place it on the master page only.
I have seen your form, you have used many fields on the master page itself. It will be good if you create a fragment and then use it there.
And instead of writing a script on individual fields, try to use a scri...