refactors edit_quiz.js, QuizController now responds to json for #update