quiz code from http://jsmapreduce.com & answers