fix JS for enrolling users