A simple dice app using OO Javascript