Move JS for quiz page to file