Update dice_widget.js

Code cleanup