cleaner way to set properties of settings interface

@agentlame Please review this and remove the example setting in
modbutton.js L39 once you’ve confirmed it.