Better implementation of removing that junk cookie