MBH: completing cookie to local storage switch