Tunable ohmic environment using Josephson junction chains