move conflict instructor check to javascript