Quick javascript fix for end-of-quiz behavior on minor quizzes