Design change in js, encapsulated all the calculator functionality in a
single object.