Replacing cookie control with local storage control (which will default to cookie if LS is not available)