javascript quizz manager