add javascript quizzes function