var myTestColorObj; function initializePicker() { myTestColorObj = new ColorPopup("myTestColor", "myTestColorObj", function() { document.getElementById('cardControls').style.backgroundColor = this.selectedColor; }); myTestColorObj.enable(); }