simple dices like in rpg, using js