the dynamic quiz assignment from http://javascriptissexy.com/how-to-learn-javascript-properly/