major changes in quiz.ctp

re-structured html, and javascript