Add back JS for enabling and disabling fields