A crowdsourced JavaScript exercise