Operate cookie use plain javascript