Additional Comments to quiz.js

Added additional comments to quiz.js to make clearer the steps in the
javascript functions.