Update js/dice.js

Fixed the dicecup constructor. I have no idea of what was I thinking the first time.