fix loadScript in exam edit

Was sure I'd already done this, but maybe it was on a development branch.