more js: removing fields and setting default values