a JS implementation of a Ruby quiz for code demo