Modify javascript to permit colorpicker to be repeatable