A satoshi dice simulator in Javascript