Needed Cookie script

Got this from GitHub