update form selects states to use javascript