A general JS based Dice.