Move JS code in /quiz/%/take/% to separated file.