Play dice! written in JavaScript