modify js for field config form