Ok I'll look into refactoring this into something more functional. Either way, this functionality will be used in many of the Examiner tasks, so where should I put code that is common across Examiner tasks, sort of like a library? Should I create a core/js/examiner folder and put stuff there?