Make sure setting key exists in JS