updated js for selecting demographiks fields