Why don't you just use literals?
var Constants = { style: { border_sides: 20, button_width: 17 } }
Even if you want to consider using the construction function , replace Constants with this
function Constants(){ this.style = {}; this.style.border_sides = 20; this.style.button_width = 17;
You do not need to do new Constants() for literals (1st example). Just start using right away.
For the second example (constructor function) you need to do var constants = new Constants() .
source share