updated dynamic-quiz.js file