Tuning the charge density wave and superconductivity in CuxTaS2