Remove cookie-handling functions from main script

They're only needed inside the iframe.