Linked form values with JS