Optimized both checkbox and radiobutton decorator painting (executes fewer javascript map functions). State variables now pass generated, common html to one another rather than each state generating its own html