First create index.html
Second we are going to create style.css
3rd we are going to create the ui.js
refactored for dice.js using prototype
In conclusion, I hope you learned something from my source code.