Fixing the quiz view javascript